package com.food.dao.in;

import java.io.InputStream;
import java.util.List;

import com.food.model.Product;
import com.food.model.Recipe;

public interface RecipeDAO {
	public int insertRecipe(Recipe bean,InputStream is, int size);
	public void updateRecipe (int mbid, String rname, int countryid, String rintroduce, String rtrick,byte[] rimg,java.sql.Date rdate,int rid);
	public void deleteRecipe (int rid);
	public List< Recipe > findAllRecipe ();
	public Recipe findRecipeById (int rid);
	public List< Recipe > findRecipeByName (String rname);
	public List< Recipe > findRecipeByCountry (int countryid);
	public List< Recipe > findRecipeByMb (int mbid);
	
	public List<Recipe> findAllRecipePages(int pagesize, int pageindex);

	public List<Recipe> findTenNewRecipe();
	
	public List<Recipe> findTopTenScore();
}
